<template>
  <div id="4d24542ee38d4ed8b2f747b5493b6710" class="chart-container"></div>
</template>

<script setup>
import * as echarts from "echarts";
import { onMounted } from "vue";

onMounted(() => {
  var chart_4d24542ee38d4ed8b2f747b5493b6710 = echarts.init(
            document.getElementById('4d24542ee38d4ed8b2f747b5493b6710'), 'light', {renderer: 'canvas'});
        var option_4d24542ee38d4ed8b2f747b5493b6710 = {

          "grid": {
  // "top": 0,
  "right": 20,
  "bottom": 20,
  "left": 1,
  "containLabel": true
},
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "aria": {
        "enabled": false
    },

    "series": [
        {
            "type": "bar",
            "name": "\u7279\u5f81\u91cd\u8981\u6027",
            "legendHoverLink": true,
            "data": [
                0.000553029606385502,
                0.10197454680475476,
                0.27203438991355766,
                0.1319967458570675,
                0.0246357004631324,
                0.025694029588480053,
                0.26203231349024486,
                0.0882006862105403,
                0.08550665214808628,
                0.0073719059177506565
            ],
            "realtimeSort": false,
            "showBackground": false,
            "stackStrategy": "samesign",
            "cursor": "pointer",
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": false,
                "margin": 8
            },
            "itemStyle": {
                "color":         function (params) {            if (params.value < 0.1)                 return '#FFDAB9';            else if (params.value > 0.1 && params.value < 0.2)                 return '#61BFAD';            else return '#FF8B8B';        }        
            }
        }
    ],
    "legend": [
        {
            "data": [
                "\u7279\u5f81\u91cd\u8981\u6027"
            ],
            "selected": {
                "\u7279\u5f81\u91cd\u8981\u6027": true
            },
            "show": false,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14,
            "backgroundColor": "transparent",
            "borderColor": "#ccc",
            "borderWidth": 1,
            "borderRadius": 0,
            "pageButtonItemGap": 5,
            "pageButtonPosition": "end",
            "pageFormatter": "{current}/{total}",
            "pageIconColor": "#2f4554",
            "pageIconInactiveColor": "#aaa",
            "pageIconSize": 15,
            "animationDurationUpdate": 800,
            "selector": false,
            "selectorPosition": "auto",
            "selectorItemGap": 7,
            "selectorButtonGap": 10
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "axis",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "shadow"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "enterable": false,
        "confine": false,
        "appendToBody": false,
        "transitionDuration": 0.4,
        "formatter": "{b}: {c}",
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5,
        "order": "seriesAsc"
    },
    "xAxis": [
        {
            "name": "\u91cd\u8981\u6027\u5f97\u5206",
            "show": true,
            "scale": false,
            "nameLocation": "middle",
            "nameGap": 25,
            "gridIndex": 0,
            "axisLabel": {
                "show": true,
                "position": "bottom",
                "color": "#666",
                "distance": 20,
                "margin": 8,
                "verticalAlign": "top"
            },
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": true,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            }
        }
    ],
    "yAxis": [
        {
            "name": "\u7279\u5f81",
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "axisTick": {
                "show": true,
                "alignWithLabel": false,
                "inside": false
            },
            "axisLabel": {
                "show": true,
                "color": "#666",
                "rotate": 42,
                "margin": 8
            },
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": true,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            },
            "data": [
                "\u6027\u522b",
                "\u5e74\u9f84",
                "\u5b66\u4e60\u538b\u529b",
                "\u5b66\u4e60\u6ee1\u610f\u5ea6",
                "\u7761\u7720\u65f6\u95f4",
                "\u996e\u98df\u4e60\u60ef",
                "\u662f\u5426\u6709\u8fc7\u81ea\u6740\u7684\u5ff5\u5934",
                "\u5b66\u4e60\u65f6\u95f4",
                "\u7ecf\u6d4e\u538b\u529b",
                "\u7cbe\u795e\u75be\u75c5\u5bb6\u65cf\u53f2"
            ]
        }
    ],
    "title": [
        {
            "show": true,
            "text": "\u5f71\u54cd\u6291\u90c1\u7684\u7279\u5f81\u91cd\u8981\u6027",
            "target": "blank",
            "subtarget": "blank",
            "left": "center",
            "top": "4%",
            "padding": 5,
            "itemGap": 10,
            "textAlign": "auto",
            "textVerticalAlign": "auto",
            "triggerEvent": false,
            // "textStyle": {
            //     "color": "#333",
            //     "fontSize": 18
            // }
        }
    ]
};
        chart_4d24542ee38d4ed8b2f747b5493b6710.setOption(option_4d24542ee38d4ed8b2f747b5493b6710);
    
});
</script>

<style lang="scss" scoped>
.chart-container {
  width:100%;
  height: 100%;
}
</style>
